from tkinter import*
x = int(input("введите x:"))
y = int(input("введите y:"))
koef = int(input("введите коэффициент квелечения "))
stor = 50
stor = stor * koef
if 2*stor + x > 500 or 3*stor + y > 500:
    exit("фигура превышает размер окна")
okno = Tk()
holst = Canvas(okno, width = 500 , height = 500 , bg = "white")
holst.create_rectangle( x , y , x+stor , y+stor, fill = "blue")
holst.create_rectangle( x , y , x+stor , y+stor+stor, fill = "blue")
holst.create_rectangle( x+stor+stor , y+stor , x + stor , y + stor+stor, fill = "blue")
holst.create_rectangle( x+stor+stor+stor , y+stor , x + stor , y + stor+stor, fill = "blue")
holst.create_rectangle( x+stor+stor+stor , y , x+stor+stor , y + stor+stor, fill = "blue")
holst.pack()
